<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>forEach</title>
</head>
<script>
    const arr = ['a', 'b', 'c'];
    arr.forEach(function(element){
        console.log(element);
    });

    arr.forEach(element => console.log(element));
</script>
<body>
    
</body>
</html>